import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import request from '@/utils/request'
import axios from 'axios'
import './assets/gloable.css'
// 全局引入相关包
import * as echarts from "echarts";
// 开启echarts
Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false

Vue.use(ElementUI, { size: 'mini' })

Vue.prototype.request = request
Vue.prototype.$axios = axios

new Vue({
  router,
  store,
  render: h => h(App),
  beforeCreate () {
     Vue.prototype.$bus = this // 安装全局事件总线
 }
}).$mount('#app')
